-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APM convenience methods #429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document more
lib/countly.js
Outdated
* This should be used to initialize the SDK with APM feature. It loads necessary scripts before initializing the SDK. | ||
* @param {Object} conf - Countly config object. | ||
*/ | ||
function initAfterAPM(conf) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initAfterLoadingAPM
examples/example_apm_async.html
Outdated
Countly.url = "https://try.count.ly"; //your server goes here | ||
Countly.debug = true; | ||
Countly.apm = true; | ||
// Countly.boomSRC = "../somewhere/boomerang.min.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"boomSRC" -> "customSourceBoomerang"
examples/example_apm_async.html
Outdated
Countly.debug = true; | ||
Countly.apm = true; | ||
// Countly.boomSRC = "../somewhere/boomerang.min.js"; | ||
// Countly.clyBoomSRC = "../somewhere/countly_boomerang.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"clyBoomSRC" -> "customSourceCountlyBoomerang"
examples/example_apm_async.html
Outdated
Countly.app_key = "YOUR_APP_KEY"; | ||
Countly.url = "https://try.count.ly"; //your server goes here | ||
Countly.debug = true; | ||
Countly.apm = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"apm" -> "loadAPMScriptsAsync"
lib/countly.js
Outdated
@@ -180,6 +188,7 @@ | |||
var SDK_NAME = "javascript_native_web"; | |||
|
|||
var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/; | |||
var shouldLetApmLoading = true; // used to prevent loading apm scripts multiple times. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"shouldLetApmLoading" -> "apmLibrariesAlreadyLoaded"
No description provided.